import React, {Component} from 'react';

export default class children extends Component {
	state = {
		// arrs: [
		// 	{id: 1, name: 'wgy', age: 18},
		// 	{id: 2, name: 'why', age: 28},
		// 	{id: 3, name: 'www', age: 13},
		// ],
		arrs:"123"
	};

	render() {
		return (
			<div>
				<h1>我是子组件</h1>
				{this.state.arrs.map(item => {
					return (
						<h4 key={item.id}>
							{item.name}--{item.age}
						</h4>
					);
				})}
			</div>
		);
	}
}
